package chinaums.plugin.quartz;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import chinaums.service.ISptomlinkService;

/**
 * <p>Title:SendSptoMlinkData</p>
 * <p>Description:定时发送短信类</p>
 * @version v1.0
 * @author RenLei
 * 2017年7月21日
 */
@Component
public class SendSptoMlinkData {
	private static Logger log= LoggerFactory.getLogger(SendSptoMlinkData.class);
	@Resource
	private ISptomlinkService sptomlinkservice;
	/**
	 * 每隔一分钟执行一次该方法
	 * 每一个小时执行一次 cron = 0 0 0/1 * * ? 
	 * 
	 */
	@Scheduled(cron = "0 0/1 * * * ?")
	public void send(){
		log.info("进入发送短信模式....");
		sptomlinkservice.stmlist();
		log.info("短信发送完毕....");
	}
}
